package com.Aliyun.alipay.config;

import com.limao.Tool.CacheClass;


/* *
 *类名：AlipayConfig
 *功能：基础配置类
 *详细：设置帐户有关信息及返回路径
 *版本：3.3
 *日期：2012-08-10
 *说明：
 *以下代码只是为了方便商户测试而提供的样例代码，商户可以根据自己网站的需要，按照技术文档编写,并非一定要使用该代码。
 *该代码仅供学习和研究支付宝接口使用，只是提供一个参考。
	
 *提示：如何获取安全校验码和合作身份者ID
 *1.用您的签约支付宝账号登录支付宝网站(www.alipay.com)
 *2.点击“商家服务”(https://b.alipay.com/order/myOrder.htm)
 *3.点击“查询合作者身份(PID)”、“查询安全校验码(Key)”

 *安全校验码查看时，输入支付密码后，页面呈灰色的现象，怎么办？
 *解决方法：
 *1、检查浏览器配置，不让浏览器做弹框屏蔽设置
 *2、更换浏览器或电脑，重新登录查询。
 */

public class AlipayConfig {
	
	//↓↓↓↓↓↓↓↓↓↓请在这里配置您的基本信息↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
	// 合作身份者ID，以2088开头由16位纯数字组成的字符串
	public static String partner = "2088021811292189";//"2088021722270955";
	//APPID
	public static String APPID ="2016051401400015";//"2016032501240733"; //2016032501240784  2015122201027624
	// 商户的私钥
	
	//public static String private_key = "MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBAPjcC5oY6bhoc6dT8bQCGhtYuHiv57n2ty1Nk+gE72fshr+9ghog5pB0/zSbqvENzzOCbHAJvu+jeAwpYVbryo29yrhBp25gr3C4Dfja4SmOX7oUpSrIZZNsUSIkmK7jytUd5V6oIJ4j5w3HEjqY19R0hdkisYRTda5XckZj1D/VAgMBAAECgYA+FrByVurhDnZkdgYk0i1vSzhjLAgVlp9nFybiyXBtrk6EQiTWngTIX9hYaMpCcB6VDGI/pb7UjSVja2OUyylyq8e4qEkGayRE1x1nBmJQvgORheAuwwz3VtVXgcgWlIBcjb+1WJGLk+wxcvxTaescsW16c9K31uw2UZ8aCgoTFQJBAP0U+nzoEnCYJq1vrC9O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0ngCTMxowBDlhZBGEE55AVJ2iBywWEoQKDBi1fwF/BAkB7B5pnk+vdsRFO9vAc6q2i9J+Ih9oKaxAOlB3ro3ddaVYYfXj6uVl7lj8jTC5FPd7ofE4egKfomEY/IPGZ+wJBAkAtKA/TouubJF0y9qgYA+kP0VrBkd3WNj6b0SxMxxldzj2KadamsGaivY6MW5MdtYq8GxKhlHVDqqKmpGCqGZn9";
	
	
	// 支付宝的公钥，无需修改该值
	//原 
	//public static String ali_public_key  = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCnxj/9qwVfgoUh/y2W89L6BkRAFljhNhgPdyPuBV64bfQNN1PjbCzkIM6qRdKBoLPXmKKMiFYnkd6rAoprih3/PrQEB/VsW8OoM8fxn67UDYuyBTqA23MML9q1+ilIZwBC2AQ2UBVOrFXfFl75p6/B5KsiNG9zpgmLCUYuLkxpLQIDAQAB";
	//新
	//public static String ali_public_key  = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQD43AuaGOm4aHOnU/G0AhobWLh4r+e59rctTZPoBO9n7Ia/vYIaIOaQdP80m6rxDc8zgmxwCb7vo3gMKWFW68qNvcq4QaduYK9wuA342uEpjl+6FKUqyGWTbFEiJJiu48rVHeVeqCCeI+cNxxI6mNfUdIXZIrGEU3WuV3JGY9Q/1QIDAQAB";
	//新
	public static String ali_public_key  = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCnxj/9qwVfgoUh/y2W89L6BkRAFljhNhgPdyPuBV64bfQNN1PjbCzkIM6qRdKBoLPXmKKMiFYnkd6rAoprih3/PrQEB/VsW8OoM8fxn67UDYuyBTqA23MML9q1+ilIZwBC2AQ2UBVOrFXfFl75p6/B5KsiNG9zpgmLCUYuLkxpLQIDAQAB";
	//支付宝帐号由款人
	//原
	//public static String seller_id="15277317007@163.com";
	//新
	public static String seller_id="760747627@qq.com";
	
	//↑↑↑↑↑↑↑↑↑↑请在这里配置您的基本信息↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑
	

	public static String getAliPartner()
	{
		
		partner=CacheClass.getSYS_BaseDataCacheManager().Load_Param("aliPartner0").trim();
		if(CacheClass.isEmpty(partner))
		{
			partner="2088021811292189";
		}
		return partner;
	}
	
	public static String getAliAPPID()
	{
		
		APPID=CacheClass.getSYS_BaseDataCacheManager().Load_Param("aliAPPID0").trim();
		if(CacheClass.isEmpty(APPID))
		{
			APPID="2016051401400015";
		}
		return APPID;
	}	
	
	
	public static String getAliPrivateKey()
	{
		
		private_key=CacheClass.getSYS_BaseDataCacheManager().Load_Param("aliPrivateKey0").trim();
		if(CacheClass.isEmpty(private_key))
		{
			private_key="MIICdQIBADANBgkqhkiG9w0BAQEFAASCAl8wggJbAgEAAoGBAKISkN6wlszfd3hqqwvvPZ6lWvBWskBGC+aAt/EzaADsKpvBv20kDojv4XeCrKOLmFkNvpPTSHWzVKc3lPSwb/S/9MhDqFtr9VHQ6EjrjnODddb/Nfsb3tCj66aUhaPCJQ1VgrlO4M7+xJ76NTHmBdbkhJqS4xWKjiFwBc/btghhAgMBAAECgYAZY0MiPxNAQHkceckVc4J5iXl3UH1XqCFRGDS4Kc9O5a+++licJhvIw5rT97pHXCSfPpHt4hjlpxPJpeFFeyXuNxHfnh7NLUk1YiZIJoKxaPbZ6dwQ4WTX/5iXiKAXf1qZy6LWMcPXhYIQ9pkfp4xweXJ/C0JJxaba9nhE2nju4QJBANKGYlAceU2C5IiBRxx63SEL9HUdBSVDDArF/yOieA/qYj7K6cSx2tifDXEB/7uiMr9h+JWUHkeNuJIQvszPpz0CQQDFFNvAnYGP2XLVs7Rvf4PwmJgpGCT1HoBPhO8UIdvDVVJocde0OctE4QfebnBwzt5M3DMHACPmXwEMKMCYDpf1AkBF84EXPV7Q8n0dHleSjwCKyn4fq9TZ3L1TlxZ/sKxUHX0ngCTMxowBDlhZBGEE55AVJ2iBywWEoQKDBi1fwF/BAkB7B5pnk+vdsRFO9vAc6q2i9J+Ih9oKaxAOlB3ro3ddaVYYfXj6uVl7lj8jTC5FPd7ofE4egKfomEY/IPGZ+wJBAkAtKA/TouubJF0y9qgYA+kP0VrBkd3WNj6b0SxMxxldzj2KadamsGaivY6MW5MdtYq8GxKhlHVDqqKmpGCqGZn9";
		}
		return private_key;
	}		
	

	public static String getAliSellerId()
	{
		
		seller_id=CacheClass.getSYS_BaseDataCacheManager().Load_Param("aliSellerId0").trim();
		if(CacheClass.isEmpty(seller_id))
		{
			seller_id="crowd2016@163.com";
		}
		return seller_id;
	}		
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	// 调试用，创建TXT日志文件夹路径
	public static String log_path = "D:\\";

	// 字符编码格式 目前支持 gbk 或 utf-8
	public static String input_charset = "utf-8";
	
	// 签名方式 不需修改
	public static String sign_type = "RSA";
	

	 /**
     * 支付宝消息验证地址
     */
	public static final String HTTPS_VERIFY_URL = "https://mapi.alipay.com/gateway.do?service=notify_verify&";

}
